package x;

public class A
{
    int value1;
    int value2;

    public A()  // constructor
    {
        value1 = 10;
        value2 = 20;
        System.out.println("Inside Constructor");
    }
    public A(int x)  // constructor
    {
        value1 = x;
        value2 = x;
        System.out.println("Inside Constructor2");
    }
    public A(int x, int y)  // constructor
    {
        value1 = x;
        value2 = y;
        System.out.println("Inside Constructor3");
    }

    public void display()
    {
        System.out.println("Value1 === " + value1);
        System.out.println("Value2 === " + value2);
    }

    public static void main(String args[])
    {
        A d1 = new A();
       
        
        A d2 = new A(2);
        //d2.display();
        
        A d3 = new A(3, 4);
    }
}